package com.weixing.mall.provider.controller.rpc;

import com.weixing.mall.core.support.BaseController;
import com.weixing.mall.provider.service.IBaseSetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

@RestController
@RequestMapping("/api/baseset")
public class BaseSetRpcController extends BaseController {
    @Autowired
    private IBaseSetService baseSetService;

    @GetMapping(value = "getValueByCode")
    public BigDecimal getValueByCode(String code){
        return baseSetService.getValueByCode(code);
    }
}
